package com.sgcc.lms.config;

import com.sgcc.lms.bean.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-11-30 07:22
 * @Description:
 */

@PropertySource(value = {"classpath:/student.properties"})
@Component
public class ConfigOfPropertiesValue {
    @Bean
    public Student student(){
        Student student = new Student();
        student.setAge(111);
        System.out.println(student);
        return student;
    }


}
